<p-sidebar [(visible)]="sidebarRightVisible"
  position="right"
  styleClass="w-40rem"
  [modal]="false"
  (onHide)="onSidebarHide()"
  #sidebarProps>
  <div *ngIf="cfg"
    class="card p-fluid">
    <h5 [title]="cfg.Id">输送线信息</h5>
    <p-divider>
      基本信息
    </p-divider>
    <div class="field grid">
      <label class="col-12 mb-2 md:col-2 md:mb-0">名称</label>
      <div class="col-12 md:col-10">
        <input type="text"
        pInputText
        class="w-full p-inputtext-sm"
        placeholder="名称"
        [disabled]="true"
        [(ngModel)]="cfg.Name" />
      </div>
    </div>
    <p-divider>
      PLC
    </p-divider>
    <app-plc-info [plc]="cfg.Plc"></app-plc-info>
    <p-divider>状态</p-divider>
    <app-status-info [config]="cfg.Status"
      [status]="status"></app-status-info>
  </div>
</p-sidebar>